Optimal. Leaf size=46 \[ -\frac{\sin ^3(a+b x) \cos (a+b x)}{4 b}-\frac{3 \sin (a+b x) \cos (a+b x)}{8 b}+\frac{3 x}{8} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0197972, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {2635, 8} \[ -\frac{\sin ^3(a+b x) \cos (a+b x)}{4 b}-\frac{3 \sin (a+b x) \cos (a+b x)}{8 b}+\frac{3 x}{8} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \sin ^4(a+b x) \, dx &=-\frac{\cos (a+b x) \sin ^3(a+b x)}{4 b}+\frac{3}{4} \int \sin ^2(a+b x) \, dx\\ &=-\frac{3 \cos (a+b x) \sin (a+b x)}{8 b}-\frac{\cos (a+b x) \sin ^3(a+b x)}{4 b}+\frac{3 \int 1 \, dx}{8}\\ &=\frac{3 x}{8}-\frac{3 \cos (a+b x) \sin (a+b x)}{8 b}-\frac{\cos (a+b x) \sin ^3(a+b x)}{4 b}\\ \end{align*}
Mathematica [A] time = 0.040468, size = 33, normalized size = 0.72 \[ \frac{12 (a+b x)-8 \sin (2 (a+b x))+\sin (4 (a+b x))}{32 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 38, normalized size = 0.8 \begin{align*}{\frac{1}{b} \left ( -{\frac{\cos \left ( bx+a \right ) }{4} \left ( \left ( \sin \left ( bx+a \right ) \right ) ^{3}+{\frac{3\,\sin \left ( bx+a \right ) }{2}} \right ) }+{\frac{3\,bx}{8}}+{\frac{3\,a}{8}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.00929, size = 45, normalized size = 0.98 \begin{align*} \frac{12 \, b x + 12 \, a + \sin \left (4 \, b x + 4 \, a\right ) - 8 \, \sin \left (2 \, b x + 2 \, a\right )}{32 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.31536, size = 89, normalized size = 1.93 \begin{align*} \frac{3 \, b x +{\left (2 \, \cos \left (b x + a\right )^{3} - 5 \, \cos \left (b x + a\right )\right )} \sin \left (b x + a\right )}{8 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.979039, size = 95, normalized size = 2.07 \begin{align*} \begin{cases} \frac{3 x \sin ^{4}{\left (a + b x \right )}}{8} + \frac{3 x \sin ^{2}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{4} + \frac{3 x \cos ^{4}{\left (a + b x \right )}}{8} - \frac{5 \sin ^{3}{\left (a + b x \right )} \cos{\left (a + b x \right )}}{8 b} - \frac{3 \sin{\left (a + b x \right )} \cos ^{3}{\left (a + b x \right )}}{8 b} & \text{for}\: b \neq 0 \\x \sin ^{4}{\left (a \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10223, size = 43, normalized size = 0.93 \begin{align*} \frac{3}{8} \, x + \frac{\sin \left (4 \, b x + 4 \, a\right )}{32 \, b} - \frac{\sin \left (2 \, b x + 2 \, a\right )}{4 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]